<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>layer-更懂你的web弹窗解决方案</title>
<script src="layer/jquery-1.10.1.min.js"></script>
<script src="layer/layer.js"></script>
<style>
</style>
</head>
<body>
<script>
;!function(){

//页面一打开就执行，放入ready是为了layer所需配件（css、扩展模块）加载完毕
layer.ready(function(){  
	layer.open({
    content: '你是想确认呢，还是想取消呢？',
    btn: ['确认', '取消'],
    shadeClose: false,
    yes: function(){
        layer.open({content: '你点了确认', time: 1});
    }, no: function(){
        layer.open({content: '你选择了取消', time: 1});
    }
});
});

}();
</script>
</body>
</html>